import React, { Component } from 'react';
import Carousel from '../../components/Carousel'
class Index extends Component {
  render() {
    const { location } = this.props
    const { banners, title, desc} = location.state
    return (
      <div>
        <Carousel banners={ banners }></Carousel>
        <h3>{title}</h3>
        <p>{ desc }</p>
      </div>
    );
  }
}

export default Index;
